﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_GroupAdmin.Edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>修改权限组</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css">
.codetop{ list-style:none; margin:0px; padding:0px;}
.codelist{ list-style:none; width:100%; margin: 10px 5px 5px 0px; padding: 3px 3px 3px 0px;}
.codelist li { display:block; float: left; width:200px;}
</style>
<script language="javascript" type="text/javascript">
function CheckAll(form)
{
  for (var i=0;i<form.elements.length;i++)
  {
    var e = form.elements[i];
    if(e.type=="checkbox")
    {
      if (e.name != "chkAll" && e.disabled==false)
        e.checked = form.chkAll.checked;
    }
  }
}
</script>
</head>
<body>
<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="controls">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align"left">
                <table>
                    <tr>
                        <td><img src="../images/maintenance_32x32.gif" width="16" height="16" /></td>
                        <td><label>设置 > 修改权限组</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <span>操作 > </span>
                <a href='./Add.aspx'>添加权限组</a>
                <a href='javascript:window.history.back();'>返回</a>   
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>
    
    
<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">

    <form id="form1" runat="server">
     <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
       <tr valign="top">
        <td valign="top">
            
          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">


            <tr>
              <td width="145" align="right" nowrap bgcolor="#F4FBFF">角色名称:</td>
              <td bgcolor="#F4FBFF">
                <asp:HiddenField ID="hidReferrer" runat="server" />
                <asp:TextBox ID="txtName" runat="server"  CssClass="input"  Width="266px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                      ErrorMessage="权限组名称不能为空" ControlToValidate="txtName"></asp:RequiredFieldValidator> 
              </td>
            </tr>
            
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">允许权限:</td>
              <td bgcolor="#F4FBFF">
                <table width="100%" align="center" border="0" cellpadding="8" cellspacing="5" style="border-collapse:collapse;">
                   <tr align="left">
                      <td nowrap  bgcolor="#F4FBFF">      
                       <ul class="codetop">          
                        <asp:Repeater ID="Repeater_admin" runat="server" OnItemDataBound="Repeater_admin_ItemDataBound">
                         <ItemTemplate>
                           <asp:Literal ID="litTitle" runat="server"></asp:Literal>
                           <li>
                            <asp:CheckBox ID="Code_list" runat="server" />
                            <asp:HiddenField ID="hidCodeno" runat="server" />
                           </li>
                         </ItemTemplate>
                        </asp:Repeater>
                       </ul>   
                      </td>                    
                   </tr>
                   <tr>
                    <td>
                        <input name="chkAll" type="checkbox" id="chkAll" onClick="CheckAll(form)" value="checkbox" style="position:absolute;clip: rect(6 15 15 6)">
                        <img for="chkAll" src="../images/cms-ico12.gif" border="0">
                    </td>
                   </tr>
                </table>
              </td>
            </tr>
            
            <tr>
              <td bgcolor="#F4FBFF">&nbsp;</td>
              <td bgcolor="#F4FBFF">
                  <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="btnEdit"  runat="server" 
                      Text=" 确定 " onclick="btnEdit_Click"  /></td>
            </tr>
          </table>
          
        
        </td>
      </tr>
 </table>
</form>

    </td>
  </tr>
 </table>
</div>
</body>
</html>